package org.n.shop.service.impl;

import lombok.AllArgsConstructor;
import org.n.shop.mapper.OrderLogisticsDetailsMapper;
import org.n.shop.result.RestResult;
import org.n.shop.result.RestResultBuilder;
import org.n.shop.service.OrderLogisticsDetailsService;
import org.springframework.stereotype.Service;

@Service
@AllArgsConstructor
public class OrderLogisticsDetailsServiceImpl implements OrderLogisticsDetailsService {
    private OrderLogisticsDetailsMapper orderLogisticsDetailsMapper;

    @Override
    public RestResult id(int id) {
        return new RestResultBuilder().success(
                orderLogisticsDetailsMapper.id(id)
        );
    }
}
